<?php

namespace common\widgets\colorpicker;

use yii\web\AssetBundle;

/**
 * Asset bundle for the Twitter bootstrap css files.
 *
 * @author Qiang Xue <qiang.xue@gmail.com>
 * @since 2.0
 */
class ColorPickerAsset extends AssetBundle {

    /**
     * debug模式时强制拷贝
     */
    public $publishOptions = [
        'forceCopy' => true//YII_DEBUG
    ];
    public $css = [
        'jquery-minicolors/jquery.minicolors.css',
    ];
    public $js = [
        'jquery-minicolors/jquery.minicolors.js',
        'components-color-pickers.js',
    ];
    public $depends = [
        'yii\web\JqueryAsset',
    ];

    /**
     * @inheritdoc
     */
    public function init() {
        $this->sourcePath = __DIR__ . '/assets';
        parent::init();
    }

}
